﻿using System.Threading.Tasks;

namespace Sidvall.WorkItemManager.Model.Local
{
    public sealed partial class DataPortal : global::Sidvall.WorkItemManager.Model.DataPortalBase, global::Sidvall.Business.IDataPortal
    {
        #region Public Members

        #region DeleteItemsAsync

        public async Task DeleteItemsAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkerField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemTypeField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemWorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.DeleteItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, global::Sidvall.Data.DeleteCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkRetryPolicyField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region ExecuteAsync

        public async Task ExecuteAsync(global::Sidvall.Business.DataPortalContext<global::Sidvall.Data.CommandCriteria, global::Sidvall.Data.CommandCriteria> dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.ExecuteAsync(this, dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region GetItemAsync

        public async Task GetItemAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkCondition, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkConditionField, global::Sidvall.WorkItemManager.Data.Relations.WorkConditionRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorker, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkerField, global::Sidvall.WorkItemManager.Data.Relations.WorkerRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItem, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemLogField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemLogRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemSensorRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorLogField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemSensorLogRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemType, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemTypeField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemTypeRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemWorkConditionField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemWorkConditionRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.GetItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy, global::Sidvall.Data.FetchCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkRetryPolicyField, global::Sidvall.WorkItemManager.Data.Relations.WorkRetryPolicyRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region GetItemCountAsync

        public async Task GetItemCountAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkerField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemTypeField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemWorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.GetItemCountAsync(this, (global::Sidvall.Business.DataPortalContext<long, global::Sidvall.Data.FetchCountCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkRetryPolicyField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region GetItemsAsync

        public async Task GetItemsAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkCondition, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkConditionField, global::Sidvall.WorkItemManager.Data.Relations.WorkConditionRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorker, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkerField, global::Sidvall.WorkItemManager.Data.Relations.WorkerRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItem, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemLogField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemLogRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemSensorRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorLogField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemSensorLogRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemType, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemTypeField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemTypeRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkItemWorkConditionField, global::Sidvall.WorkItemManager.Data.Relations.WorkItemWorkConditionRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.GetItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy, global::Sidvall.Data.FetchListCriteria<global::Sidvall.WorkItemManager.Data.Fields.WorkRetryPolicyField, global::Sidvall.WorkItemManager.Data.Relations.WorkRetryPolicyRelation>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region NewItemAsync

        public async Task NewItemAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkCondition, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorker, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItem, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemType, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.NewItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region NewItemsAsync

        public async Task NewItemsAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkCondition, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorker, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItem, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemType, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.NewItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy, global::Sidvall.Data.CreateCriteria>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region SaveItemAsync

        public async Task SaveItemAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkCondition, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkCondition>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorker, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorker>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItem, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkItem>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemType, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkItemType>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.SaveItemAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy, Sidvall.Data.SaveContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region SaveItemsAsync

        public async Task SaveItemsAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkCondition, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkCondition>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorker, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorker>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItem, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkItem>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemLog, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkItemLog>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensor, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkItemSensor>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkItemSensorLog>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemType, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkItemType>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkItemWorkCondition>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.SaveItemsAsync(this, (global::Sidvall.Business.DataPortalContext<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy, Sidvall.Data.SaveContext<Sidvall.Data.IDataRowProvider<global::Sidvall.WorkItemManager.Data.IWorkRetryPolicy>>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region UpdateItemAsync

        public async Task UpdateItemAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkerField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemTypeField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemWorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.UpdateItemAsync(this, (global::Sidvall.Business.DataPortalContext<bool, Sidvall.Data.UpdateItemContext<global::Sidvall.WorkItemManager.Data.Fields.WorkRetryPolicyField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion
        #region UpdateItemsAsync

        public async Task UpdateItemsAsync(global::Sidvall.Business.IDataPortalContext dataPortalContext)
        {
            switch (dataPortalContext.Resource)
            {
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkConditionManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.Worker:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkerManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkerField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItem:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemLogManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensor:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemSensorLog:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemSensorLogManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemSensorLogField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemType:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemTypeManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemTypeField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkItemWorkCondition:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkItemWorkConditionManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkItemWorkConditionField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                case global::Sidvall.WorkItemManager.Data.Model.DomainObjects.WorkRetryPolicy:
                    await Sidvall.WorkItemManager.Model.Local.DataPortalManagers.WorkRetryPolicyManager.UpdateItemsAsync(this, (global::Sidvall.Business.DataPortalContext<int, Sidvall.Data.UpdateItemsContext<global::Sidvall.WorkItemManager.Data.Fields.WorkRetryPolicyField>>)dataPortalContext).ConfigureAwait(false);
                    break;
                default:
                    break;
            }
        }

        #endregion

        #endregion
        #region Constructors

        public DataPortal(global::Sidvall.WorkItemManager.Model.IDataPortalManager dataPortalManager)
            : base(dataPortalManager)
        {
        }

        #endregion
    }
}